package com.lanting.meetingserver.base;

import java.util.List;

public interface BaseDao<T extends BaseEntity> {

	void insert(T entity);

	void update(T entity);

	void delete(T entity);

	List<T> getList(QueryBase query);


	List<T> getAll();

	List<T> getAllByMeetingId(int meetingId);

	int getCount();

	int getCountByMeetingId(int meetingId);
	
	int getCountByQuery(QueryBase query);
}
